package com.lx.mailweb.domain;

import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;


public class Txl implements Comparator<Txl>{
	
	private int id1;
	private String jigou;
	private String bumen;
	private String name;
	private String keshi;
	private String ip;
	private String zhixian;
	private String zhixianxuni;
	private String mob;
	private String xunihao;
	private String email;
	private String zhiwei;
	
	public String getZhiwei() {
	return zhiwei;
	}
	public void setZhiwei(String zhiwei) {
		this.zhiwei = zhiwei;
	}
	private int sex;
	private int zjl;
	private int bm;
	private int pq;
	private int fzr;
	private int zx;
	private int zhnq;
	private int ord;
	
	
	public int getOrd() {
		return ord;
	}
	public void setOrd(int ord) {
		this.ord = ord;
	}
	public int getZjl() {
		return zjl;
	}
	public void setZjl(int zjl) {
		this.zjl = zjl;
	}
	public int getBm() {
		return bm;
	}
	public void setBm(int bm) {
		this.bm = bm;
	}
	public int getPq() {
		return pq;
	}
	public void setPq(int pq) {
		this.pq = pq;
	}
	public int getFzr() {
		return fzr;
	}
	public void setFzr(int fzr) {
		this.fzr = fzr;
	}
	public int getZx() {
		return zx;
	}
	public void setZx(int zx) {
		this.zx = zx;
	}
	public int getZhnq() {
		return zhnq;
	}
	public void setZhnq(int zhnq) {
		this.zhnq = zhnq;
	}
	
	
	
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getId1() {
		return id1;
	}
	public void setId1(int id1) {
		this.id1 = id1;
	}
	public String getJigou() {
		return jigou;
	}
	public void setJigou(String jigou) {
		this.jigou = jigou;
	}
	public String getBumen() {
		return bumen;
	}
	public void setBumen(String bumen) {
		this.bumen = bumen;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getKeshi() {
		return keshi;
	}
	public void setKeshi(String keshi) {
		this.keshi = keshi;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getZhixian() {
		return zhixian;
	}
	public void setZhixian(String zhixian) {
		this.zhixian = zhixian;
	}
	public String getZhixianxuni() {
		return zhixianxuni;
	}
	public void setZhixianxuni(String zhixianxuni) {
		this.zhixianxuni = zhixianxuni;
	}
	public String getMob() {
		return mob;
	}
	public void setMob(String mob) {
		this.mob = mob;
	}
	public String getXunihao() {
		return xunihao;
	}
	public void setXunihao(String xunihao) {
		this.xunihao = xunihao;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public Map<Integer,Boolean> getZhiweiMap(){
		Map<Integer,Boolean> map=new HashMap<Integer, Boolean>();
		for (int i = 1; i <= 6; i++) {
			map.put(i, false);
		}
		String[] zhiweiArr=null;
		if(zhiwei!=null && !zhiwei.equals("") && !zhiwei.equals("0")){
			zhiweiArr=zhiwei.split(",");
			for (String zhiwei : zhiweiArr) {
				int zw=Integer.parseInt(zhiwei);
				map.put(zw, true);
				
			}
		}
		return map;
	}
	@Override
	public int hashCode() {
		return id1;
	}
	@Override
	public int compare(Txl o1, Txl o2) {
		return o1.getId1()-o2.getId1();
	}


}
